package main

import (
	"crypto/sha512"
	"fmt"
)

func main() {
	// hash := md5.New() // 128bits, 16bytes
	hash := sha512.New() // 512bits, 16bytes

	hash.Write([]byte("abc"))
	r := hash.Sum(nil)
	fmt.Printf("%T %[1]v %[1]s, %d \n", r, len(r))
	s := fmt.Sprintf("%x", r)
	fmt.Printf("%s, %-2d \n", s, len(s))
}
